Skip to content

Conversation

@ChristianMurphy
Copy link
Member

leverage ComponentType to allow for class components as well.

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

Avoid inlining intrinsic type.
Use ComponentType to allow for class components.

similar to remarkjs/react-markdown#638

leverage ComponentType to allow for class components as well.
@ChristianMurphy ChristianMurphy added the ☂️ area/types This affects typings label Aug 26, 2021
@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Aug 26, 2021
@codecov-commenter

This comment has been minimized.

@ChristianMurphy ChristianMurphy requested a review from wooorm August 26, 2021 13:19
Copy link
Member

@wooorm wooorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect otherwise!

@ChristianMurphy
Copy link
Member Author

This could probably be considered SemVer patch, because it allows TS to do what JS already could.

@ChristianMurphy ChristianMurphy added the 👶 semver/patch This is a backwards-compatible fix label Aug 26, 2021
@wooorm wooorm changed the title types: avoid inlining intrinsics at build time Fix to correctly compile intrinsic types Aug 26, 2021
@wooorm wooorm merged commit dac20e2 into rehypejs:main Aug 26, 2021
@wooorm wooorm added the 💪 phase/solved Post is done label Aug 26, 2021
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Aug 26, 2021
@ChristianMurphy ChristianMurphy deleted the leverage-react-intrinsics branch August 26, 2021 14:12
@wooorm
Copy link
Member

wooorm commented Aug 26, 2021

Released!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

☂️ area/types This affects typings 💪 phase/solved Post is done 👶 semver/patch This is a backwards-compatible fix

Development

Successfully merging this pull request may close these issues.

4 participants